Skip to content

Conversation

@max-nextcloud
Copy link
Collaborator

@max-nextcloud max-nextcloud commented Apr 28, 2025

Fixes #7092

Files without an owner such as federated shares
cannot receive attachments
as the attachment would need to be stored in the owners user folder.

TODO:

  • unit test for backend
  • add syncService.hasOwner
  • frontend: disable attachments in SuggestionBar
  • frontend: disable attachments in MenuBar
  • decission: What to do about picking files from cloud

@max-nextcloud max-nextcloud force-pushed the fix/7092-no-attachments-for-federated-shares branch 2 times, most recently from 4e0a23d to 76c5518 Compare April 28, 2025 14:25
@max-nextcloud max-nextcloud changed the title WIP enh(api): indicate missing file owner in create response enh(api): indicate missing file owner in create response Apr 28, 2025
@github-project-automation github-project-automation bot moved this to 🧭 Planning evaluation (don't pick) in 📝 Office team Apr 29, 2025
@max-nextcloud max-nextcloud moved this from 🧭 Planning evaluation (don't pick) to 🏗️ In progress in 📝 Office team Apr 29, 2025
@max-nextcloud max-nextcloud force-pushed the fix/7092-no-attachments-for-federated-shares branch from 76c5518 to 4528a93 Compare May 5, 2025 07:37
@codecov
Copy link

codecov bot commented May 5, 2025

Codecov Report

Attention: Patch coverage is 80.35714% with 11 lines in your changes missing coverage. Please review.

Project coverage is 52.41%. Comparing base (e6db745) to head (8b9c8fa).
Report is 4 commits behind head on main.

Files with missing lines Patch % Lines
src/components/Menu/ActionAttachmentUpload.vue 15.38% 11 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7154      +/-   ##
==========================================
+ Coverage   51.94%   52.41%   +0.47%     
==========================================
  Files         479      479              
  Lines       41457    41508      +51     
  Branches     1002     1024      +22     
==========================================
+ Hits        21534    21757     +223     
+ Misses      19817    19649     -168     
+ Partials      106      102       -4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Files without an owner such as federated shares
cannot receive attachments
as the attachment would need to be stored in the owners user folder.

Signed-off-by: Max <[email protected]>
@max-nextcloud max-nextcloud force-pushed the fix/7092-no-attachments-for-federated-shares branch from 4528a93 to 180564d Compare May 6, 2025 08:43
@max-nextcloud max-nextcloud force-pushed the fix/7092-no-attachments-for-federated-shares branch from 180564d to 8b9c8fa Compare May 6, 2025 09:01
@max-nextcloud max-nextcloud changed the title enh(api): indicate missing file owner in create response Disable attachment upload on federated shares May 6, 2025
@max-nextcloud max-nextcloud marked this pull request as ready for review May 6, 2025 09:18
@max-nextcloud max-nextcloud requested a review from mejo- as a code owner May 6, 2025 09:18
Copy link
Member

@mejo- mejo- left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Didn't test, but the code changes look sensible to me. Extra kudos for the tests 🧪

@max-nextcloud
Copy link
Collaborator Author

/backport to stable31

@max-nextcloud max-nextcloud merged commit ab81921 into main May 6, 2025
72 checks passed
@max-nextcloud max-nextcloud deleted the fix/7092-no-attachments-for-federated-shares branch May 6, 2025 09:52
@github-project-automation github-project-automation bot moved this from 🏗️ In progress to ☑️ Done in 📝 Office team May 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

Attaching a file to a federated share should be blocked.

3 participants